<!-- inc:frame.top -->

<div class="position"><p><!-- inc:position --> &raquo; <a href="{:$mainlink}?file=adminer&act=list">用户管理</a> &raquo; 更改密码</p><!-- inc:position.fr --></div>

<div class="page_pad">
  <form method="post" action="{:$mainlink}?file=setpass&act=setpassok" onsubmit="return chkpass(this);">
  <div class="content_box">
    <div class="content_bor">
      <table class="ctable">
        <tr>
          <td class="left">新密码：<span style="color:red;">*</span></td>
          <td class="right">
            <table class="ntable">
              <tr>
                <td><input class="ginput" type="text" name="passnew" id="passnew" /></td>
                <td>&nbsp;&nbsp;</td>
                <td><button class="gbutton" type="button" onclick="randpass('passnew',10);copytext('passnew','passchk');">生成随机密码</button></td>
                <td>&nbsp;&nbsp;</td>
                <td><span>[请输入一个新的密码，由数字、字母、特殊字符组成且大于7位数]</span></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td class="left">确认密码：<span style="color:red;">*</span></td>
          <td class="right">
            <input class="ginput" type="text" name="passchk" id="passchk" />
            &nbsp;
            <span class="clue_on">[请再输入一次密码]</span>
          </td>
        </tr>
      </table>
    </div>
  </div><!--content_box-->
  
  <div class="gbutton_div"><button type="submit" class="gbutton gbutton_dblue gbutton_add" id="creat_button">更改密码</button> &nbsp; <span id="show_step" style="color:red;"><img src="images/loading.gif" style="visibility:hidden;" /></span></div>
  </form>
</div><!--page_pad-->

<script type="text/javascript">
function chkpass(o)
{
	if(!o.passnew.value || !o.passchk.value)
	{
		tip_msg('请输入新密码！');
		return false;
	}
	if(o.passnew.value != o.passchk.value)
	{
		tip_alert("两次输入的密码不一致！");
		return false;
	}
	document.getElementById("show_step").innerHTML = "<img src='images/loading.gif' border='0' align='absmiddle'> 正在保存数据，如果网页没有动静请刷新...";
	document.getElementById("creat_button").disabled=true;
}
</script>

<!-- inc:frame.bottom -->